public class Demo1 {
    public static String week(int num){
        String week="";
        switch (num){
            case 1:
                week="星期一";
                break;
            case 2:
                week="星期二";
                break;
            case 3:
                week="星期三";
                break;
            case 4:
                week="星期四";
                break;
            case 5:
                week="星期五";
                break;
            case 6:
                week="星期六";
                break;
            case 7:
                week="星期天";
                break;
        }
        return week;
    }

    public static void main(String[] args) {
        int num=5;
        String week=week(5);
        System.out.println(week);
    }
}
